import React from 'react'
import { useLocation } from 'react-router-dom'
import { PageParam } from './type'

export default function Home () {
  // 接收从login过来参数
  // 要补充泛型
  const location = useLocation<PageParam>()
  console.log(location.state)
  //   if (location.state) {
  //     console.log(location.state.a)
  //   }

  return (
    <div>Home</div>
  )
}
